package com.JustTest;

import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
import org.springframework.core.env.ConfigurablePropertyResolver;
import org.springframework.core.env.PropertySource;
import org.springframework.core.env.PropertySources;

import java.util.Iterator;
import java.util.Properties;

/**
 * Created by mike on 18/2/8.
 */
public class MyPlaceholderConfigurer extends PropertySourcesPlaceholderConfigurer{
    @Override
    public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) {
        PropertySources propertySources = new PropertySources() {
            @Override
            public boolean contains(String s) {
                return false;
            }

            @Override
            public PropertySource<?> get(String s) {
                return null;
            }

            @Override
            public Iterator<PropertySource<?>> iterator() {
                return null;
            }
        };
    }
}
